/**
 $ @Author: jyq
 $ @Date: 2022-06-30 09:20:14
 $ @LastEditTime: 2022-07-01 13:16:33
 $ @LastEditors: jyq
 $ @Description: 
 $ @FilePath: \dasantest2\day06\vue3-project\vite.config.js
 $ @可以输入预定的版权声明、个性签名、空行等
 */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import Components from 'unplugin-vue-components/vite';
import { VantResolver } from 'unplugin-vue-components/resolvers';
import vueJsx from "@vitejs/plugin-vue-jsx";
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    vueJsx(),
    Components({
      resolvers: [VantResolver()],
    }), 
  ],
  esbuild: { loader: { '.js': '.jsx' } }
})
